﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
  public  class DynamicBLL
    {
      DynamicDAL dal = new DynamicDAL();
             /// <summary>
       /// 显示行业动态
       /// </summary>
       /// <returns></returns>
      public List<Dynamics> ShowDynamic()
      {
          return dal.ShowDynamic();
      }
       /// <summary>
       /// 删除信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
      public int DeleteDynamic(int id)
      {
          return dal.DeleteDynamic(id);
      }
       /// <summary>
       /// 添加信息
       /// </summary>
       /// <param name="p"></param>
       /// <returns></returns>
       public int Dynamic_Add(Model.Dynamics p)
       {
           return dal.Dynamic_Add(p);
       }
       /// <summary>
       /// 显示详细信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public Dynamics ShowDynamicsX(int id)
       {
           return dal.ShowDynamicsX(id);
       }
       /// <summary>
       /// 修改信息
       /// </summary>
       /// <param name="data"></param>
       /// <returns></returns>
       public int UpdateDynamics(Dynamics data)
       {
           return dal.UpdateDynamics(data);
       }
       /// <summary>
       /// 搜索
       /// </summary>
       /// <param name="pp"></param>
       /// <returns></returns>
       public List<Dynamics> SeleteDynamics(string name)
       {
           return dal.SeleteDynamics(name);
       }
    }
}
